﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Utility
{
    /// <summary>
    /// 配置 统一入口
    /// </summary>
    public class StaticConstant
    {
        /// <summary>
        /// 连接字符串                                  
        /// </summary>
        public static string ConnStr = @"Data Source={0};Persist Security Info=True;User ID={1};Password={2}";
        /// <summary>
        /// 查询表的sql语句
        /// </summary>
        public static string TableSql = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES";
        /// <summary>
        /// 查询列（字段）的sql语句
        /// </summary>
        public static string ColumnSql = "SELECT COLUMN_NAME,DATA_TYPE FROM INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='@TABLE_NAME'";

        /// <summary>
        /// 查询数据库的sql语句
        /// </summary>
        public static string DbSql = "select name from sys.databases where database_id > 4";
    }
}
